<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title>

</head>
<body>
<input id='ipt'>
<input id='ipt2'>
<div id='div'></div>
<script type="text/javascript">
	

	ipt.oninput = ipt2.oninput =function(){
		div.innerHTML = this.value;
	}
</script>
</body>
</html>